import request from "@/utils/request";
const BASE_URL = "admin";

//治疗师信息管理
//查
export const queryAllTherapistInfo = (params) =>
    request.get(`${BASE_URL}/doctor/queryAllTherapistInfo`, { params });

//编辑
export const updateTherapistInfo = (params) =>{
    return request.put(`${BASE_URL}/doctor/updateTherapistInfo?id=${params.id}`, params);
}

//删除
export const deleteTherapistInfo = (id) =>
    request.delete(`${BASE_URL}/doctor/deleteTherapistInfo`, {params:id});

//新增
export const addTherapistInfo = (params) =>
    request.post(`${BASE_URL}/doctor/addTherapistInfo`, params );

//查partment下拉框
export const queryDepartment = (params) =>
    request.get(`${BASE_URL}/departmentInfo`,  params );